class FeedbackItemModel {
  FeedbackItemModel({
    this.score,
    this.description,
    this.imageList,
    this.mailbox,
    this.replyContent,
    this.replyTime,
    this.createTime,
  });

  FeedbackItemModel.fromJson(dynamic json) {
    score = json['score'];
    description = json['description'];
    if (json['sourceUrl'] != null &&
        json['sourceUrl'] is String &&
        (json['sourceUrl'] as String).isNotEmpty) {
      imageList = (json['sourceUrl'] as String).split(',');
    }
    mailbox = json['mailbox'];
    replyContent = json['replyContent'];
    replyTime = json['replyTime'];
    createTime = json['createTime'];
  }
  String? score;
  String? description;
  List<String>? imageList;
  String? mailbox;
  String? replyContent;
  String? replyTime;
  String? createTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['score'] = score;
    map['description'] = description;
    map['imageList'] = imageList;
    map['mailbox'] = mailbox;
    map['replyContent'] = replyContent;
    map['replyTime'] = replyTime;
    map['createTime'] = createTime;
    return map;
  }
}
